﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DrawCorve
{
    public partial class FormMain : Form
    {
        private List<Curve> curves;


        public FormMain()
        {
            InitializeComponent();
        }

        private void FormMain_Load(object sender, EventArgs e)
        {
            this.curves = new List<Curve>();
        }

        private void panel1_MouseDown(object sender, MouseEventArgs e)
        {
            Curve curve = new Curve();
            this.curves.Add(curve);
       

        }

        private void panel1_MouseMove(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons) return;
            this.label1.Text = "x:" + e.X.ToString() + "y:" + e.Y.ToString();

            int Count = this.curves.
        }
    }

    public class Curve
    {
        //定义构成曲线的点集
        public List<Point> points = new List<Point>();
    }
}
